import { DefaultTheme, DarkTheme } from '@react-navigation/native';
import { LightTheme, DarkTheme as AppDarkTheme } from '../context/ThemeContext';

// 浅色主题导航配置
export const LightNavigationTheme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: LightTheme.primary,
    background: LightTheme.background,
    card: LightTheme.surface,
    text: LightTheme.text,
    border: LightTheme.border,
    notification: LightTheme.notification,
  },
};

// 深色主题导航配置
export const DarkNavigationTheme = {
  ...DarkTheme,
  colors: {
    ...DarkTheme.colors,
    primary: AppDarkTheme.primary,
    background: AppDarkTheme.background,
    card: AppDarkTheme.surface,
    text: AppDarkTheme.text,
    border: AppDarkTheme.border,
    notification: AppDarkTheme.notification,
  },
};

// 获取导航主题
export const getNavigationTheme = (isDark: boolean) => {
  return isDark ? DarkNavigationTheme : LightNavigationTheme;
};